get user symfony

132

get user symfony -

$user = $this->get('security.token_storage')->getToken()->getUser();
$user->getUsername();

Comments

Submit
0 Comments